package com.yuju.account.enums;

import com.yuju.account.enums.BusinessTypeEnum;

/**
 * 类名：BusinessTypeEnum  <br />
 *
 * 功能：营业项目枚举
 *
 * @author : jiaokn <br />
 * @Date : 2017年12月4日 上午11:07:25  <br />
 * @version : 1.1 <br />
 */
public enum BusinessTypeEnum {
	
	//预订单和订单的营业类型
    BUSINESS_TYPE_DJ((byte)1, "订金","DJ_CODE"),
    BUSINESS_TYPE_SK((byte)2, "收款","SK_CODE"),
	BUSINESS_TYPE_TK((byte)3, "退款","TK_CODE"),
	BUSINESS_TYPE_NOSHOW((byte)4, "NOSHOW","NS_CODE"),
	BUSINESS_TYPE_YJ((byte)5, "押金","YJ_CODE"),
	BUSINESS_TYPE_MD((byte)6, "免单","MD_CODE"),
	BUSINESS_TYPE_QT((byte)7, "其他","QT_CODE"),
	BUSINESS_TYPE_YSK((byte)8, "预收款","YSK_CODE"),
	BUSINESS_TYPE_DWZF((byte)9, "单位支付","DZ_CODE"), 
	BUSINESS_TYPE_ZJZF((byte)10, "中介支付","ZZ_CODE"), 
	BUSINESS_TYPE_HYZF((byte)11, "会员支付","HZ_CODE"),
	BUSINESS_TYPE_TRZF((byte)12, "他人支付","TZ_CODE"),
	BUSINESS_TYPE_DWJS((byte)13, "单位结算","DS_CODE"),
	BUSINESS_TYPE_ZJJS((byte)14, "中介结算","ZS_CODE"),
	
	BUSINESS_TYPE_XSD((byte)51, "销售点","XSD_CODE"),
	BUSINESS_TYPE_YSFF((byte)52, "夜审房费","YSFF_CODE"),
	BUSINESS_TYPE_JSFF((byte)53, "加收房费","JSFF_CODE"),
	BUSINESS_TYPE_XTJF((byte)54, "系统计费","XTJF_CODE"),
	BUSINESS_TYPE_NSFF((byte)55, "NOSHOW房费","NSFF_CODE"),
	BUSINESS_TYPE_GRDF((byte)56, "个人代付","GDF_CODE"),
	BUSINESS_TYPE_DWDF((byte)57, "单位代付","DDF_CODE"),
	BUSINESS_TYPE_ZJDF((byte)58, "中介代付","ZDF_CODE"),
	BUSINESS_TYPE_HYDF((byte)59, "会员代付","HDF_CODE");

    

	
	private byte value;
    private String name;
    private String type;

    BusinessTypeEnum(byte value, String name,String type) {
        this.name = name;
        this.value = value;
        this.type = type;
    }
	public String getName() {
        return name;
    }
    public String getType() {
        return type;
    }
    public byte getValue() {
        return value;
    }
    // 普通方法
    public static String getName(int value) {
        for (BusinessTypeEnum c : BusinessTypeEnum.values()) {
            if (c.getValue() == value) {
                return c.name;
            }
        }
        return null;
    }
    
    public static String getType(int value) {
        for (BusinessTypeEnum c : BusinessTypeEnum.values()) {
            if (c.getValue() == value) {
                return c.type;
            }
        }
        return null;
    }
}
